//
//  TrendsViewController.m
//  Hyatt
//
//  Created by QC.L on 15/5/25.
//  Copyright (c) 2015年 QC.L. All rights reserved.
//

#import "TrendsViewController.h"

@implementation TrendsViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    [self.navigationController setNavigationBarHidden:YES animated:NO];
    
    
    
    
    
    
    self.attentionVC = [[AttentionViewController alloc] init];
    [self addChildViewController:self.attentionVC];
    [self.view addSubview:self.attentionVC.view];
    
    self.collectVC = [[CollectViewController alloc] init];
    [self addChildViewController:self.collectVC];
    [self.view addSubview:self.collectVC.view];
    
    [self.view bringSubviewToFront:self.attentionVC.view];

    
    UIView *titleV = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 64)];
    titleV.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:titleV];
    
    
    
    UIButton *collectB = [UIButton buttonWithType:UIButtonTypeCustom];
    collectB.frame = CGRectMake((self.view.frame.size.width - 50) / 2, 30, 50, 20);
    [collectB setTitle:@"收藏" forState:UIControlStateNormal];
    [collectB setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    [titleV addSubview:collectB];
    
    UIButton *attentionB = [UIButton buttonWithType:UIButtonTypeCustom];
    attentionB.frame = CGRectMake(collectB.frame.origin.x - 50 - 50, 30, collectB.frame.size.width, collectB.frame.size.height);
    [attentionB setTitle:@"关注" forState:UIControlStateNormal];
    [attentionB setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    [titleV addSubview:attentionB];
    
//    UIButton *attentionB = [UIButton buttonWithType:UIButtonTypeCustom];
//    attentionB.frame = CGRectMake(20, 30, 50, 20);
//    [attentionB setTitle:@"关注" forState:UIControlStateNormal];
//    [attentionB setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
//    [titleV addSubview:attentionB];
    
//    self.tableV = [[UITableView alloc] initWithFrame:CGRectMake(0, 64, kWidth, kHeight) style:UITableViewStylePlain];
//    self.tableV.delegate = self;
//    self.tableV.dataSource = self;
//    [self.view addSubview:self.tableV];
    
}

//// 高度
//- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
//{
//    return 100;
//}
//
//// 标题
//- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
//{
//    
//    return @"推荐关注";
//}
//
//// 行数
//- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
//{
//    return 15;
//}
//
//// 创建cell
//- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
//{
//    NSString *cellIdentifier = @"cell";
//    TrendsTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier];
//    
//    
//    if (nil == cell) {
//        cell = [[TrendsTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIdentifier];
//    }
//
//    return cell;
//}

@end
